const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  name: state => state.user.userInfo?.username, // 建立用户名称的映射 名字
  userId: state => state.user.userInfo.userId,  // 获取id
  userImg: state => state.user.userInfo.staffPhoto, // 获取图片 路径
  companId: state => state.user.userInfo.companyId,  // 获取公司 ID
  routes: state => state.permission.routes // 导出当前的路由
}
export default getters
